package org.walkerljl.commons.config.impl;

import org.walkerljl.commons.exception.AppException;

/**
 * @author: lijunlin
 */
public abstract class AbstractConfiguratorProvider implements ConfiguratorProvider {

    /**
     * 包装Key,统一转换成小写的Key且trim前后空格
     *
     * @param key
     * @return
     */
    protected String wrapKey(String key) {
        return key == null ? null : key.trim().toLowerCase();
    }

    @Override
    public void set(String key, Object value) {

    }

    @Override
    public void del(String key) {

    }

    @Override
    public void init() throws AppException {

    }

    @Override
    public void destroy() {

    }

    @Override
    public String getInstanceId() {
        return null;
    }

    @Override
    public String getGroup() {
        return null;
    }
}